package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级信息业务对象 class
 *
 * @author ruoyi
 * @date 2025-06-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ClassBo extends BaseEntity {

    /**
     * 班级ID
     */
    @NotNull(message = "班级ID不能为空", groups = { EditGroup.class })
    private Long classId;

    /**
     * 班级名称
     */
    @NotBlank(message = "班级名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String className;

    /**
     * 年级
     */
    @NotBlank(message = "年级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String grade;

    /**
     * 专业
     */
    @NotBlank(message = "专业不能为空", groups = { AddGroup.class, EditGroup.class })
    private String major;

    /**
     * 班主任ID
     */
    @NotNull(message = "班主任ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long adviserId;

    /**
     * 教室
     */
    @NotBlank(message = "教室不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classroom;

    /**
     * 学生人数
     */
    @NotNull(message = "学生人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long studentCount;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
